<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>更改个人信息</title>
    <link href="/css/profile.css" rel="stylesheet">
</head>
<body>
    <div class="container">
        <div>
            <a href="/getProfile.do" class="back-link">返回</a>
        </div>
        <div class="profile">
            <span>
                <img th:src="${userInformation.avatar}" alt="profile-image" class="profile-image">
            </span>
            <span class="profile-info">
                <form action="/updateProfile.do" method="post">
                    <p>姓名：<input type="text" name="username" th:value="${userInformation.name}"></p>
                    <p>邮箱：<input type="text" name="email" th:value="${userInformation.email}"></p>
                    <p>电话：<input type="text" name="phone" th:value="${userInformation.phone}"></p>
                    <p>图片：<input type="text" name="avatar" th:value="${userInformation.avatar}"></p>
                    <input type="submit" class="submit-button" value="提交">
                </form>
            </span>
        </div>
    </div>
</body>
</html>
